package com.interactive;

import java.util.HashMap;

public class ContainerFunction extends Container  {
	protected static HashMap<String, String> map = new HashMap<String, String>();
	
	private static final String className="Interactive";
	private static final String importPackages="";
	
	public String getConsoleWriteCode(String code) {
		StringBuilder stringBuilder=new StringBuilder()
				.append(String.format( "public class %s{",className))
				.append("public static void main(String[] args) {")
				.append(String.format("System.out.println(%s);",code))
				.append("}}");
		return stringBuilder.toString();
	}
	
	public String getCode(String code) {
		StringBuilder stringBuilder=new StringBuilder()
				.append(String.format( "public class %s{",className))
				.append("public static void main(String[] args) {")
				.append(String.format(code))
				.append("}}");
		return stringBuilder.toString();
	}
	
}
